package com.mes.service.hy;

import java.util.List;

import com.mes.entity.hy.Equipment;

/**
 * 
 * @ClassName:IEquipmentService
 * @Description: 设备service层接口类
 * @Author hy
 * @Date 2018-5-30上午10:51:44
 * @version 1.0
 */
public interface IEquipmentService {
	
	/**
	 * 修改
	 * @param equipment 设备类
	 * @return int返回值
	 */
	public int update(Equipment equipment);

	/**
	 * 条件查询设备
	 * @param equipment 设备类
	 * @return List<Equipment>
	 */
	public List<Equipment> equOth(Equipment equipment);

	/**
	 * 设备总数
	 * @return int型总数
	 */
	public int equCount();

	/**
	 * 根据id查询
	 * @param equipment 设备类
	 * @return Equipment 设备类
	 */
	public Equipment selectById(Equipment equipment);

	/**
	 * 删除
	 * @param eid 设备id
	 * @return int型返回值
	 */
	public int delete(Long eid);

	/**
	 * 新增
	 * @param equipment 设备类
	 * @return int型返回值
	 */
	public int addEqui(Equipment equipment);

	/**
	 * 查询全部设备
	 * @return List<Equipment>
	 */
	public List<Equipment> selAll();

	/**
	 * 查询设备
	 * @param equipment 设备类
	 * @return List<Equipment>
	 */
	public List<Equipment> selectEquipment(Equipment equipment);

	/**
	 * 查询总数
	 * @param equipment 设备类
	 * @return int型总数
	 */
	public int selectCount(Equipment equipment);
}
